package com.oracle.pojo;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class FkExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public FkExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andFkIdIsNull() {
            addCriterion("fk_id is null");
            return (Criteria) this;
        }

        public Criteria andFkIdIsNotNull() {
            addCriterion("fk_id is not null");
            return (Criteria) this;
        }

        public Criteria andFkIdEqualTo(Integer value) {
            addCriterion("fk_id =", value, "fkId");
            return (Criteria) this;
        }

        public Criteria andFkIdNotEqualTo(Integer value) {
            addCriterion("fk_id <>", value, "fkId");
            return (Criteria) this;
        }

        public Criteria andFkIdGreaterThan(Integer value) {
            addCriterion("fk_id >", value, "fkId");
            return (Criteria) this;
        }

        public Criteria andFkIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("fk_id >=", value, "fkId");
            return (Criteria) this;
        }

        public Criteria andFkIdLessThan(Integer value) {
            addCriterion("fk_id <", value, "fkId");
            return (Criteria) this;
        }

        public Criteria andFkIdLessThanOrEqualTo(Integer value) {
            addCriterion("fk_id <=", value, "fkId");
            return (Criteria) this;
        }

        public Criteria andFkIdIn(List<Integer> values) {
            addCriterion("fk_id in", values, "fkId");
            return (Criteria) this;
        }

        public Criteria andFkIdNotIn(List<Integer> values) {
            addCriterion("fk_id not in", values, "fkId");
            return (Criteria) this;
        }

        public Criteria andFkIdBetween(Integer value1, Integer value2) {
            addCriterion("fk_id between", value1, value2, "fkId");
            return (Criteria) this;
        }

        public Criteria andFkIdNotBetween(Integer value1, Integer value2) {
            addCriterion("fk_id not between", value1, value2, "fkId");
            return (Criteria) this;
        }

        public Criteria andFkNameIsNull() {
            addCriterion("fk_name is null");
            return (Criteria) this;
        }

        public Criteria andFkNameIsNotNull() {
            addCriterion("fk_name is not null");
            return (Criteria) this;
        }

        public Criteria andFkNameEqualTo(String value) {
            addCriterion("fk_name =", value, "fkName");
            return (Criteria) this;
        }

        public Criteria andFkNameNotEqualTo(String value) {
            addCriterion("fk_name <>", value, "fkName");
            return (Criteria) this;
        }

        public Criteria andFkNameGreaterThan(String value) {
            addCriterion("fk_name >", value, "fkName");
            return (Criteria) this;
        }

        public Criteria andFkNameGreaterThanOrEqualTo(String value) {
            addCriterion("fk_name >=", value, "fkName");
            return (Criteria) this;
        }

        public Criteria andFkNameLessThan(String value) {
            addCriterion("fk_name <", value, "fkName");
            return (Criteria) this;
        }

        public Criteria andFkNameLessThanOrEqualTo(String value) {
            addCriterion("fk_name <=", value, "fkName");
            return (Criteria) this;
        }

        public Criteria andFkNameLike(String value) {
            addCriterion("fk_name like", value, "fkName");
            return (Criteria) this;
        }

        public Criteria andFkNameNotLike(String value) {
            addCriterion("fk_name not like", value, "fkName");
            return (Criteria) this;
        }

        public Criteria andFkNameIn(List<String> values) {
            addCriterion("fk_name in", values, "fkName");
            return (Criteria) this;
        }

        public Criteria andFkNameNotIn(List<String> values) {
            addCriterion("fk_name not in", values, "fkName");
            return (Criteria) this;
        }

        public Criteria andFkNameBetween(String value1, String value2) {
            addCriterion("fk_name between", value1, value2, "fkName");
            return (Criteria) this;
        }

        public Criteria andFkNameNotBetween(String value1, String value2) {
            addCriterion("fk_name not between", value1, value2, "fkName");
            return (Criteria) this;
        }

        public Criteria andFkPhoneIsNull() {
            addCriterion("fk_phone is null");
            return (Criteria) this;
        }

        public Criteria andFkPhoneIsNotNull() {
            addCriterion("fk_phone is not null");
            return (Criteria) this;
        }

        public Criteria andFkPhoneEqualTo(String value) {
            addCriterion("fk_phone =", value, "fkPhone");
            return (Criteria) this;
        }

        public Criteria andFkPhoneNotEqualTo(String value) {
            addCriterion("fk_phone <>", value, "fkPhone");
            return (Criteria) this;
        }

        public Criteria andFkPhoneGreaterThan(String value) {
            addCriterion("fk_phone >", value, "fkPhone");
            return (Criteria) this;
        }

        public Criteria andFkPhoneGreaterThanOrEqualTo(String value) {
            addCriterion("fk_phone >=", value, "fkPhone");
            return (Criteria) this;
        }

        public Criteria andFkPhoneLessThan(String value) {
            addCriterion("fk_phone <", value, "fkPhone");
            return (Criteria) this;
        }

        public Criteria andFkPhoneLessThanOrEqualTo(String value) {
            addCriterion("fk_phone <=", value, "fkPhone");
            return (Criteria) this;
        }

        public Criteria andFkPhoneLike(String value) {
            addCriterion("fk_phone like", value, "fkPhone");
            return (Criteria) this;
        }

        public Criteria andFkPhoneNotLike(String value) {
            addCriterion("fk_phone not like", value, "fkPhone");
            return (Criteria) this;
        }

        public Criteria andFkPhoneIn(List<String> values) {
            addCriterion("fk_phone in", values, "fkPhone");
            return (Criteria) this;
        }

        public Criteria andFkPhoneNotIn(List<String> values) {
            addCriterion("fk_phone not in", values, "fkPhone");
            return (Criteria) this;
        }

        public Criteria andFkPhoneBetween(String value1, String value2) {
            addCriterion("fk_phone between", value1, value2, "fkPhone");
            return (Criteria) this;
        }

        public Criteria andFkPhoneNotBetween(String value1, String value2) {
            addCriterion("fk_phone not between", value1, value2, "fkPhone");
            return (Criteria) this;
        }

        public Criteria andFkDormitoryidIsNull() {
            addCriterion("fk_dormitoryid is null");
            return (Criteria) this;
        }

        public Criteria andFkDormitoryidIsNotNull() {
            addCriterion("fk_dormitoryid is not null");
            return (Criteria) this;
        }

        public Criteria andFkDormitoryidEqualTo(String value) {
            addCriterion("fk_dormitoryid =", value, "fkDormitoryid");
            return (Criteria) this;
        }

        public Criteria andFkDormitoryidNotEqualTo(String value) {
            addCriterion("fk_dormitoryid <>", value, "fkDormitoryid");
            return (Criteria) this;
        }

        public Criteria andFkDormitoryidGreaterThan(String value) {
            addCriterion("fk_dormitoryid >", value, "fkDormitoryid");
            return (Criteria) this;
        }

        public Criteria andFkDormitoryidGreaterThanOrEqualTo(String value) {
            addCriterion("fk_dormitoryid >=", value, "fkDormitoryid");
            return (Criteria) this;
        }

        public Criteria andFkDormitoryidLessThan(String value) {
            addCriterion("fk_dormitoryid <", value, "fkDormitoryid");
            return (Criteria) this;
        }

        public Criteria andFkDormitoryidLessThanOrEqualTo(String value) {
            addCriterion("fk_dormitoryid <=", value, "fkDormitoryid");
            return (Criteria) this;
        }

        public Criteria andFkDormitoryidLike(String value) {
            addCriterion("fk_dormitoryid like", value, "fkDormitoryid");
            return (Criteria) this;
        }

        public Criteria andFkDormitoryidNotLike(String value) {
            addCriterion("fk_dormitoryid not like", value, "fkDormitoryid");
            return (Criteria) this;
        }

        public Criteria andFkDormitoryidIn(List<String> values) {
            addCriterion("fk_dormitoryid in", values, "fkDormitoryid");
            return (Criteria) this;
        }

        public Criteria andFkDormitoryidNotIn(List<String> values) {
            addCriterion("fk_dormitoryid not in", values, "fkDormitoryid");
            return (Criteria) this;
        }

        public Criteria andFkDormitoryidBetween(String value1, String value2) {
            addCriterion("fk_dormitoryid between", value1, value2, "fkDormitoryid");
            return (Criteria) this;
        }

        public Criteria andFkDormitoryidNotBetween(String value1, String value2) {
            addCriterion("fk_dormitoryid not between", value1, value2, "fkDormitoryid");
            return (Criteria) this;
        }

        public Criteria andFkDormbuildIsNull() {
            addCriterion("fk_dormbuild is null");
            return (Criteria) this;
        }

        public Criteria andFkDormbuildIsNotNull() {
            addCriterion("fk_dormbuild is not null");
            return (Criteria) this;
        }

        public Criteria andFkDormbuildEqualTo(String value) {
            addCriterion("fk_dormbuild =", value, "fkDormbuild");
            return (Criteria) this;
        }

        public Criteria andFkDormbuildNotEqualTo(String value) {
            addCriterion("fk_dormbuild <>", value, "fkDormbuild");
            return (Criteria) this;
        }

        public Criteria andFkDormbuildGreaterThan(String value) {
            addCriterion("fk_dormbuild >", value, "fkDormbuild");
            return (Criteria) this;
        }

        public Criteria andFkDormbuildGreaterThanOrEqualTo(String value) {
            addCriterion("fk_dormbuild >=", value, "fkDormbuild");
            return (Criteria) this;
        }

        public Criteria andFkDormbuildLessThan(String value) {
            addCriterion("fk_dormbuild <", value, "fkDormbuild");
            return (Criteria) this;
        }

        public Criteria andFkDormbuildLessThanOrEqualTo(String value) {
            addCriterion("fk_dormbuild <=", value, "fkDormbuild");
            return (Criteria) this;
        }

        public Criteria andFkDormbuildLike(String value) {
            addCriterion("fk_dormbuild like", value, "fkDormbuild");
            return (Criteria) this;
        }

        public Criteria andFkDormbuildNotLike(String value) {
            addCriterion("fk_dormbuild not like", value, "fkDormbuild");
            return (Criteria) this;
        }

        public Criteria andFkDormbuildIn(List<String> values) {
            addCriterion("fk_dormbuild in", values, "fkDormbuild");
            return (Criteria) this;
        }

        public Criteria andFkDormbuildNotIn(List<String> values) {
            addCriterion("fk_dormbuild not in", values, "fkDormbuild");
            return (Criteria) this;
        }

        public Criteria andFkDormbuildBetween(String value1, String value2) {
            addCriterion("fk_dormbuild between", value1, value2, "fkDormbuild");
            return (Criteria) this;
        }

        public Criteria andFkDormbuildNotBetween(String value1, String value2) {
            addCriterion("fk_dormbuild not between", value1, value2, "fkDormbuild");
            return (Criteria) this;
        }

        public Criteria andFkTimeIsNull() {
            addCriterion("fk_time is null");
            return (Criteria) this;
        }

        public Criteria andFkTimeIsNotNull() {
            addCriterion("fk_time is not null");
            return (Criteria) this;
        }

        public Criteria andFkTimeEqualTo(Date value) {
            addCriterion("fk_time =", value, "fkTime");
            return (Criteria) this;
        }

        public Criteria andFkTimeNotEqualTo(Date value) {
            addCriterion("fk_time <>", value, "fkTime");
            return (Criteria) this;
        }

        public Criteria andFkTimeGreaterThan(Date value) {
            addCriterion("fk_time >", value, "fkTime");
            return (Criteria) this;
        }

        public Criteria andFkTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("fk_time >=", value, "fkTime");
            return (Criteria) this;
        }

        public Criteria andFkTimeLessThan(Date value) {
            addCriterion("fk_time <", value, "fkTime");
            return (Criteria) this;
        }

        public Criteria andFkTimeLessThanOrEqualTo(Date value) {
            addCriterion("fk_time <=", value, "fkTime");
            return (Criteria) this;
        }

        public Criteria andFkTimeIn(List<Date> values) {
            addCriterion("fk_time in", values, "fkTime");
            return (Criteria) this;
        }

        public Criteria andFkTimeNotIn(List<Date> values) {
            addCriterion("fk_time not in", values, "fkTime");
            return (Criteria) this;
        }

        public Criteria andFkTimeBetween(Date value1, Date value2) {
            addCriterion("fk_time between", value1, value2, "fkTime");
            return (Criteria) this;
        }

        public Criteria andFkTimeNotBetween(Date value1, Date value2) {
            addCriterion("fk_time not between", value1, value2, "fkTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}